//
//  CMDBMovieDetailStaffCollectionCell.swift
//  CMDB
//
//  Created by 曹桂祥 on 2017/5/9.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class CMDBMovieDetailStaffCollectionCell: CMDBBaseCollectionViewCell {

    var corverImageView : UIImageView!
    
    var movieStaffNameLabel  : UILabel!
    
    override func setupCollectionCell() {
        super.setupCollectionCell()
        
    }
    
    override func buildCollectionCell() {
        super.buildCollectionCell()
        
        corverImageView = UIImageView.getInstance()
        
        corverImageView.image = UIImage(named: "test头像")
        
        corverImageView.frame = CGRect(x: 0, y: 0, width: width, height: width)
        
        contentView.addSubview(corverImageView)
        
        movieStaffNameLabel  = UILabel.getInstance()
        
        movieStaffNameLabel.textColor = word87Color
        
        movieStaffNameLabel.text       = "王宝强"
        
        movieStaffNameLabel.textAlignment = .Center
        
        movieStaffNameLabel.font       = CMDB_13_FONT
        
        movieStaffNameLabel.frame = CGRect(x: 0, y: CGRectGetMaxY(corverImageView.frame) + 10, width: width, height: 20)
        
        contentView.addSubview(movieStaffNameLabel)
    }
    
}
